package com.rapid.maintenance.adapter;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.BaseViewHolder;
import com.rapid.maintenance.R;
import com.rapid.maintenance.base.BaseAdapter;

/**
 *
 */
public class ProductMallProductAdapter extends BaseAdapter<Object> {
    private final boolean showCountDown;

    public ProductMallProductAdapter(boolean showCountDown) {
        super(R.layout.item_product);
        this.showCountDown = showCountDown;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder helper, Object item) {
        helper.setVisible(R.id.ll_countdown, showCountDown);
    }
}
